<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" href="/Public/foundation/foundation.min.css">
    <script src="__FUND_JQ __"></script>
    <script src="/Public/foundation/foundation.min.js"></script>
    <script src="/Public/foundation/modernizr.js"></script>
</head>
<body>
<nav class="top-bar" data-topbar>
    <ul class="title-area">
        <li class="name">
            <!-- 如果你不需要标题或图标可以删掉它 -->
            <h1><a href="#">后台管理</a></h1>
        </li>
    </ul>
    <section class="top-bar-section">
        <ul class="right">
            <li class="active"><a href="#">登录</a></li>
            <li><a href="#">注销</a></li>
        </ul>
    </section>
</nav>
<div>
    <div class="small-2 columns">
        <ul class="side-nav">
            <li><a href="<?php echo U(showUsers);?>">用户管理</a></li>
            <li><a href="#">Link 2</a></li>
            <li><a href="#">Link 3</a></li>
            <li><a href="#">Link 4</a></li>
        </ul>
    </div>
    <div class="small-10 columns">
        
    <a href="<?php echo U('addUser');?>" class="button small">添加用户</a>
    <table>
        <?php if(is_array($users)): foreach($users as $key=>$vo): ?><tr>
                <td><?php echo ($vo["uid"]); ?></td>
                <td><?php echo ($vo["uname"]); ?></td>
                <td><?php echo ($vo["uni"]); ?></td>
                <td><?php echo ($vo["email"]); ?></td>
                <td><?php echo ($vo["tel"]); ?></td>

                <td>
                    <a href="delUser/uid/<?php echo ($vo["uid"]); ?>" class="button tiny"><i class="fi-x"> </i>删除</a>
                    <a href="editUser/uid/<?php echo ($vo["uid"]); ?>" class="button tiny">编辑</a>
                </td>
            </tr><?php endforeach; endif; ?>
    </table>

    </div>
</div>
</body>
</html>